package com.example.hallserver.error;

import com.example.common.MjDemo;
import com.example.hallserver.ChessClient;
import org.springframework.stereotype.Component;

/**
 * Created on 2020/2/18.
 *
 * @author Grak
 * @since 1.0
 */
@Component
public class ChessClientError implements ChessClient {

    @Override
    public String getChess() {
        return "服务发生故障！";
    }

    @Override
    public MjDemo getChessOnly() {
        return new MjDemo();
    }
}
